home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-01-05 | 1.4 KB | 36 lines | [TEXT/GEOL] |
- Item 9744117 4-Jan-90 15:03
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: D1282 -> POWERUP.DEV Power Up,PRT
-
- cc: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: re- view initialization
-
- James,
-
- Whenever someone says "persistent objects" people always feel that this is some
- magical capability that won't appear for 5 years. If you want to consider
- issues from the point of view of an object oriented database, then this may be
- true. If you take a pragmatic approach, then persistent objects are easy to
- implement, and the result is a simple mechanism that can be used to save
- objects to disk and read them back.
-
- As far as re-initialization goes, the same basic mechanism could be adapted to
- handle this. Right now, reading an object is a 2 step process: (1) create the
- object, (2) call ReadFrom to read its fields. If you add step (1.5): call
- TObject.Initialize, then ReadFrom can assume the object is in a consistent
- state. If it is written properly, then you should be able to call ReadFrom
- again to reinitialize the object.
-
- This introduces a number of issues that my current implementation doesn't
- address. (That's because the current implementation was designed to be easy to
- explain, and the minimum needed to be useful). It's just a matter of deciding
- what you want to accomplish and doing it. I think the implementation is
- relatively straightforward.
-
- Larry Rosenstein
-
-
-